#ifndef MARK_H
#define MARK_H

#include <QDialog>
#include <QPushButton>
#include <QPlainTextEdit>
#include <QSettings>
#include <QTextCodec>
#include <QVBoxLayout>
#include <QScrollBar>
#include <QAction>
#include <QToolBar>
#include <QFont>

class Mark : public QDialog
{
    Q_OBJECT

public:
    Mark(QWidget *parent = nullptr);
    ~Mark();

    void closeWindow();
    void setMyBold();
    void setMyFontSizeAdd();
    void setMyFontSizeSub();

protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

private:
    QPushButton *btnClose;
    QPlainTextEdit *plainTextEdit;
    QAction *action_1;
    QAction *action_2;
    QAction *action_3;
    QToolBar *toolBar;
    QVBoxLayout *layout;
    int myBold = 0;
    int myFontSize = 16;

    QString markColor[10] = {
        "rgb(252, 157, 154)",
        "rgb(199, 237, 233)",
        "rgb(249, 205, 173)",
        "rgb(200, 200, 169)",
        "rgb(255, 252, 153)",
        "rgb(131, 175, 155)",
        "rgb(182, 194, 154)",
        "rgb(138, 151, 123)",
        "rgb(222, 211, 140)",
        "rgb(178, 200, 187)"
    };

    bool m_move = false;
    QPoint m_startPoint;
    QPoint m_windowPoint;
};

#endif // MARK_H
